/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DatabaseConnection;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author serhat
 */
public class PlaceDbConnection extends Connector{
    
    public PlaceDbConnection() throws ClassNotFoundException, 
    SQLException, InstantiationException, IllegalAccessException {
        
    }
    
    private String buildSelectQuery(){
        String query = "SELECT * FROM Yerler";
        return query;
    }
    
    public ResultSet select(){
        try {
            String query = buildSelectQuery();
            ResultSet rs = executeQuery(query);
            return rs;
        } catch (SQLException ex) {
            Logger.getLogger(PlaceDbConnection.class.getName()).log(Level.SEVERE, null, ex);
            return null;
        }
    }
    
}
